import { http } from "../utils/config";

export const queryLeader=(params?:Keyword)=>http.get("/leader/query",params)// 查询村委

export const deleteLeader=(params:{lead_id:number})=>http.delete("/leader/delete",params)// 删除村委

export const download=()=>http.download("/leader/download")// 下载模板

export const exportExcel=()=>http.download("/leader/export")// 导出

export const importExcel=(params:FormData)=>http.post('/leader/import',params)// 批量添加

export const queryOne=(params:{lead_id:number})=>http.get("/leader/queryone",params)

export const UpAvatar=(params:{lead_id:number,avatar:string})=>http.get("/leader/upavatar",params)

